<template>
  <artificial-perform :initData="initData" :title="title" @cancle="cancle" :cycleOptions="cycleOptions" @save="addForm">
  </artificial-perform>
</template>

<script>
  import ArtificialPerform from '../../base/artificial-perform/Form'
  export default {
    name: 'AddArtificialPerformance',
    data () {
      return {
        title: this.$t('public.add'),
        initData: {
          _id: '',
          name: '',
          cycle: '',
          includeSubordinate: '',
          extens: [],
          threshold: ''
        }
      }
    },
    props: {
      cycleOptions: Array
    },
    components: {
      ArtificialPerform
    },
    methods: {
      addForm (form) {
        this.$emit('add', form)
      },
      cancle () {
        this.$emit('cancle')
      }
    }
  }
</script>
